package com.ctrip.ibu.member.client.module;


import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.List;

/**
 * @author he.shaorong
 * @create 2023/3/27 19:29
 * @since 1.0.0
 */
public class AllBrokerBriefInfo {
    private List<BrokerInfo> brokerInfoList;

    private String nameServerIp = InetAddress.getLocalHost().getHostAddress();

    private boolean nameServerIsAlive = true;

    public AllBrokerBriefInfo(List<BrokerInfo> brokerInfoList) throws UnknownHostException {
        this.brokerInfoList = brokerInfoList;
    }

    public List<BrokerInfo> getBrokerInfoList() {
        return brokerInfoList;
    }

    public void setBrokerInfoList(List<BrokerInfo> brokerInfoList) {
        this.brokerInfoList = brokerInfoList;
    }

    public String getNameServerIp() {
        return nameServerIp;
    }

    public void setNameServerIp(String nameServerIp) {
        this.nameServerIp = nameServerIp;
    }

    public boolean isNameServerIsAlive() {
        return nameServerIsAlive;
    }

    public void setNameServerIsAlive(boolean nameServerIsAlive) {
        this.nameServerIsAlive = nameServerIsAlive;
    }
}
